package com.ruoyi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 抄送记录对象 t_copy_record
 * 
 * @author mzr
 * @date 2023-12-13
 */
@Data
public class TCopyRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 申请表 */
    @Excel(name = "申请表")
    private Long fromId;

    /** 抄送人数组 */
    @Excel(name = "抄送人数组")
    private String makeUser;

    /** 抄送状态 */
    @Excel(name = "抄送状态")
    private Integer makeStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 抄送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "抄送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changTime;
    // 联查 form名字
    private String formName;

    // 联查 抄送人数组的名字
    private String userName;
    // 查询用，开始时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    // 查询用，结束时间
    @JsonFormat(pattern = "yyyy-MM-dd ")
    private Date endTime;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromId(Long fromId) 
    {
        this.fromId = fromId;
    }

    public Long getFromId() 
    {
        return fromId;
    }
    public void setMakeUser(String makeUser) 
    {
        this.makeUser = makeUser;
    }

    public String getMakeUser() 
    {
        return makeUser;
    }
    public void setMakeStatus(Integer makeStatus) 
    {
        this.makeStatus = makeStatus;
    }

    public Integer getMakeStatus() 
    {
        return makeStatus;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }
    public void setChangTime(Date changTime) 
    {
        this.changTime = changTime;
    }

    public Date getChangTime() 
    {
        return changTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromId", getFromId())
            .append("makeUser", getMakeUser())
            .append("makeStatus", getMakeStatus())
            .append("creatTime", getCreatTime())
            .append("changTime", getChangTime())
            .toString();
    }
}
